<script type="text/javascript" charset="utf-8">
	$(document).ready(function() {
		$('#tabel_donatur').dataTable({
			"sPaginationType":"full_numbers",
			"bStateSave": true
		});
	} );
</script>
<style>
	div#tabel_donatur_wrapper th{
		background-color: #0066CC;
		color : #fff;
		text-align: center;
	}
	div#tabel_donatur_wrapper tr.odd{
		background-color: #e0f2be;
	}
	
	div#tabel_donatur_wrapper tr:hover{
		background-color: chartreuse;
	}
</style>
<center>
    <div class="contentIsi">
		<table align="center" width="650px">
			<tr>
				<td>
					<div id="table">
							<table width="80%" id="tabel_donatur">
								<thead>
								<tr>
									<th>No</th>
									<th>Nama Donatur</th>
									<th>Status</th>
									<th>Aksi</th>
								</tr>
								</thead>
								<tbody>
								<?php
								for ($i = 0; $i < count($row); $i++) {
									echo '<tr>';
									echo '<td align="center">'.($i+1).'</td>';
									echo '<td align="center"><a href="' . base_url() . 'admin/ctrl_donatur/profil_donatur/' . $row[$i]['iddonatur'] . '">' . $row[$i]['nama'] . '</a></td>';
									echo '<td align="center">' . $row[$i]['status'] . '</td>';
									echo '<td align="center">
										<a onclick="return confirm_message(\'Apakah anda yakin akan menghapus?\')" href="' . base_url() . 'admin/ctrl_donatur/delete_donatur/' . $row[$i]['iddonatur'] . '">Delete</a>
										<a href="' . base_url() . 'admin/ctrl_donatur/edit_donatur/' . $row[$i]['iddonatur'] . '">Edit</a>
										</td>
										';
									echo '</tr>';
								}
								?>
								</tbody>
							</table>
					</div>
				</td>
			</tr>
		</table>
	</div>
</center>